package com.hdoit.apollo.web.cargo.modelconfig;

import com.tennetcn.web.component.attribute.DisplayNameAttribute;
import com.tennetcn.web.component.attribute.RequiredAttribute;
import com.tennetcn.web.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年04月26日 15:34:17
 * @comment
 */
public class CategoryConfig extends ModelMetadataAttributeConfiguration{
    public CategoryConfig(){
        this.setProperty("categoryName")
            .hasAttribute(new DisplayNameAttribute("分类名称"))
            .hasAttribute(new RequiredAttribute("必填"));
        this.setProperty("comment")
    		.hasAttribute(new DisplayNameAttribute("备注"));
        this.setProperty("shopId")
            .hasAttribute(new DisplayNameAttribute("门店id"));

    }
}